package main

func main() {

}
func findWords(words []string) (res []string) {
	m := map[uint8]int{
		'q': 1, 'w': 1, 'e': 1, 'r': 1, 't': 1, 'y': 1, 'u': 1, 'i': 1, 'o': 1, 'p': 1,
		'a': 2, 's': 2, 'd': 2, 'f': 2, 'g': 2, 'h': 2, 'j': 2, 'k': 2, 'l': 2,
		'z': 3, 'x': 3, 'c': 3, 'v': 3, 'b': 3, 'n': 3, 'm': 3,
	}

	for _, word := range words {
		flag := true
		row := 0
		for i := range word {
			w := word[i]
			if w >= 'A' && w <= 'Z' {
				w += 32
			}
			if i == 0 {
				row = m[w]
				continue
			} else if m[w] != row {
				flag = false
				break
			}
		}
		if flag {
			res = append(res, word)
		}
	}
	return
}
